
import { GameMapItemType } from "../../game/GameDefine";
import BaseWidget from "../BaseWidget";

const {ccclass, property, menu} = cc._decorator;

@ccclass
@menu("Widget/Game/GameMapItemWidget")
export default class GameMapItemWidget extends BaseWidget {
    protected _itemType: GameMapItemType = null;
    public get itemType(): GameMapItemType { return this._itemType; }

    protected onLoad(): void {
    }

    public initWithItem(itemType: GameMapItemType): void {
        this._itemType = itemType;
    }
}